package com.trkj.dao.cf;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojo.Organization;
import com.trkj.pojo.Position;

public interface DefinepositionDAO extends CrudRepository<Position, Long>{
	@Query("from Position u where u.positionName like ?1")
	public List<Position> queryByPositionName(String positionName);
	@Query("from Position u")
	public List<Position> queryByPage(Pageable p);
}
